<template>
  <MessageItemTemplate
    :message="message"
    @set-as-read="$emit('set-as-read', $event)"
  >
    <el-button type="success"
               plain
               @click="$emit('check-detail', message)">
      {{ detailButtonText }}
    </el-button>
  </MessageItemTemplate>
</template>

<script>
import MessageItemTemplate from "@/components/new/message-item/MessageItemTemplate";
export default {
  name: "CommonMessageItem",
  components: {MessageItemTemplate},
  props: {
    message: {},
    detailButtonText: {
      default: '去看看'
    }
  }
}
</script>

<style scoped>

</style>
